<template>
  <div>
    <el-form :model="form">
      <el-form-item label="角色名称" :label-width="formLabelWidth">
        <el-input v-model="form.roleName" autocomplete="off"></el-input>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="close">取 消</el-button>
      <el-button type="primary" @click="submit">确 定</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      addFlag: this.addFlag,
      form: {
        roleName: "",
      },
      formLabelWidth: "100px",
    };
  },
  computed: {},
  //页面初始化
  created() {},
  methods: {
    //取消
    close() {
      this.$emit("closeModel");
    },
    //确定
    submit() {
      this.$emit("submit", this.form);
    },
  },
};
</script>

<style scoped>
.dialog-footer {
  margin-top: 10px;
}
</style>
